package javaweb_work01.main.Service;

import javaweb_work01.main.Dao.DeleteStudentsDao;
import javaweb_work01.main.Entity.Students;
import javaweb_work01.main.Factory.StudentsFactory;

public class DeleteService {
    //合成复用原则
    private DeleteStudentsDao deleteStudentsDao;

    public DeleteService(){
        this.deleteStudentsDao = StudentsFactory.getDeleteStudentsDao();
    }

    public int deleteStudentsService(int studentsId){
        return deleteStudentsDao.deleteStudents(studentsId);
    }
}
